import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/about',
      name: 'about',
      // route level code-splitting
      // this generates a separate chunk (About.[hash].js) for this route
      // which is lazy-loaded when the route is visited.
      component: () => import('../views/AboutView.vue'),
    },
    {
      path:"/AddMemberRights",
      name:"AddMemberRights",
      component:()=>import("../views/Members/Memberrights/AddMemberRights.vue")
    },
    {
      path:"/ShowRank",
      name:"ShowRank",
      component:()=>import("../views/Members/Memberrights/ShowRank.vue")
    },
    {
      path:"/ShowMemberRights",
      name:"ShowMemberRights",
      component:()=>import("../views/Members/Memberrights/ShowMemberRights.vue")
    },
    {
      path:"/UpRight/:MR_Id",
      name:"UpRight",
      component:()=>import("../views/Members/Memberrights/UpRight.vue")
    },
    {
      path:"/RankRights",
      name:"RankRights",
      component:()=>import("../views/Members/Memberrights/RankRights.vue")
    },
    {
      path:"/ShowRankRights",
      name:"ShowRankRights",
      component:()=>import("../views/Members/Memberrights/ShowRankRights.vue")
    },
    {
      path:"/Login",
      name:"Login",
      component:()=>import("../views/Members/MemberInfo/Login.vue")
    },
    {
      path:"/AddShop",
      name:"AddShop",
      component:()=>import("../views/Shops/AddShop.vue")
    },
    {
      path:"/ShowShops",
      name:"ShowShops",
      component:()=>import("../views/Shops/ShowShops.vue")
    },
    {
      path:"/UpdShop/:id",
      name:"UpdShop",
      component:()=>import("../views/Shops/UpdShop.vue")
    },
    {
      path:"/AddCoupons",
      name:"AddCoupons",
      component:()=>import("../views/Coupons/AddCoupons.vue")
    },
  ],
})

export default router
